inherited FVendaNotaFiscalServico: TFVendaNotaFiscalServico
  Left = 269
  Top = 89
  Caption = 'Venda Nota Fiscal Servi'#231'o'
  Color = clWindow
  Ctl3D = False
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 16
  object Label15: TLabel [0]
    Left = 369
    Top = 68
    Width = 93
    Height = 16
    Caption = 'Valor Final Nota'
  end
  inherited pcCadastro: TPageControl
    inherited TsPesquisa: TTabSheet
      inherited pnPesquisaPadrao: TPanel
        inherited edPesquisa: TEdit
          Height = 22
        end
        inherited dblCamposPesquisa: TDBLookupComboBox
          Height = 22
        end
      end
    end
    inherited TsCadastro: TTabSheet
      inherited panel1: TPanel
        inherited panel2: TPanel
          inherited BtnIncluir: TBitBtn
            Left = 22
          end
          inherited BtnEditar: TBitBtn
            Left = 143
          end
          inherited BtnFechar: TBitBtn
            Left = 626
          end
          inherited BtnExcluir: TBitBtn
            Left = 263
          end
          inherited DBNavigator1: TDBNavigator
            DataSource = nil
            Hints.Strings = ()
          end
        end
        inherited panel3: TPanel
          Top = 447
          Height = 37
          inherited BtnSalvar: TBitBtn
            Left = 632
            Top = 8
          end
          inherited BtnCancelar: TBitBtn
            Left = 737
            Top = 8
          end
          inherited stSituacaoReg2: TStaticText
            Left = 335
            Top = 9
          end
        end
        object PageControl: TPageControl
          Left = 1
          Top = 63
          Width = 842
          Height = 384
          ActivePage = TSValores
          Align = alClient
          TabIndex = 1
          TabOrder = 2
          OnChange = PageControlChange
          object TSAbertura: TTabSheet
            Caption = 'Abertura'
            object GroupBox1: TGroupBox
              Left = 0
              Top = 0
              Width = 834
              Height = 107
              Align = alTop
              Caption = 'Nota Fiscal'
              Ctl3D = False
              ParentCtl3D = False
              TabOrder = 0
              object Label1: TLabel
                Left = 4
                Top = 16
                Width = 40
                Height = 16
                Caption = 'C'#243'digo'
              end
              object DBText1: TDBText
                Left = 4
                Top = 33
                Width = 115
                Height = 21
                DataField = 'NF_CODIGO'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clRed
                Font.Height = -13
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
              end
              object Label5: TLabel
                Left = 5
                Top = 55
                Width = 40
                Height = 16
                Caption = 'Cliente'
              end
              object Label6: TLabel
                Left = 636
                Top = 55
                Width = 100
                Height = 16
                Caption = 'Data Vencimento'
              end
              object Label7: TLabel
                Left = 574
                Top = 11
                Width = 45
                Height = 16
                Caption = 'N'#250'mero'
                FocusControl = DBEdit1
              end
              object Label8: TLabel
                Left = 638
                Top = 11
                Width = 34
                Height = 16
                Caption = 'S'#233'rie '
                FocusControl = DBEdit2
              end
              object Label2: TLabel
                Left = 447
                Top = 11
                Width = 80
                Height = 16
                Caption = 'Data emiss'#227'o'
              end
              object Label22: TLabel
                Left = 448
                Top = 55
                Width = 55
                Height = 16
                Caption = 'Munic'#237'pio'
              end
              object DBLCBCliente: TDBLookupComboBox
                Left = 5
                Top = 74
                Width = 433
                Height = 22
                Hint = '(F3) Visualizar Descri'#231#227'o'
                DataField = 'NF_CLIENTE'
                KeyField = 'CLI_CODIGO'
                ListField = 'CLI_RAZAO'
                ListSource = DSCliente
                TabOrder = 4
                OnExit = DBLCBClienteExit
                OnKeyDown = DBLCBClienteKeyDown
              end
              object DBDEDataEmissao: TDBDateEdit
                Left = 447
                Top = 28
                Width = 125
                Height = 26
                DataField = 'NF_DATAEMISSAO'
                ReadOnly = True
                Color = clWhite
                ButtonWidth = 26
                NumGlyphs = 2
                TabOrder = 1
              end
              object DBRGSituacao: TDBRadioGroup
                Tag = 5
                Left = 76
                Top = 16
                Width = 329
                Height = 36
                Caption = 'Situa'#231#227'o'
                Color = clBtnFace
                Columns = 3
                DataField = 'NF_SITUACAO'
                Enabled = False
                Items.Strings = (
                  'N'#227'o emitida'
                  'Emitida'
                  'Cancelada')
                ParentColor = False
                TabOrder = 0
                Values.Strings = (
                  '0'
                  '1'
                  '2')
              end
              object DBEdit1: TDBEdit
                Left = 574
                Top = 28
                Width = 55
                Height = 22
                Color = clWhite
                DataField = 'NF_NUMERONF'
                ReadOnly = True
                TabOrder = 2
              end
              object DBEdit2: TDBEdit
                Left = 638
                Top = 28
                Width = 38
                Height = 22
                Color = clWhite
                DataField = 'NF_SERIENF'
                ReadOnly = True
                TabOrder = 3
              end
              object DBDEDataVencimento: TDBDateEdit
                Left = 636
                Top = 74
                Width = 114
                Height = 26
                DataField = 'NF_DATAVENCIMENTO'
                Color = clWhite
                ButtonWidth = 26
                NumGlyphs = 2
                TabOrder = 6
              end
              object dblMunicipio: TDBLookupComboBox
                Left = 447
                Top = 74
                Width = 183
                Height = 22
                DataField = 'NF_MUNICIPIO'
                KeyField = 'MU_CODIGO'
                ListField = 'MU_VCNOME'
                ListSource = dsMunicipio
                TabOrder = 5
                OnKeyDown = dblMunicipioKeyDown
              end
            end
            object GroupBox2: TGroupBox
              Left = 0
              Top = 108
              Width = 834
              Height = 251
              Caption = 'Itens Nota Fiscal'
              Ctl3D = False
              ParentCtl3D = False
              TabOrder = 1
              object Label35: TLabel
                Left = 495
                Top = 16
                Width = 66
                Height = 16
                Caption = 'Quantidade'
              end
              object Label24: TLabel
                Left = 4
                Top = 16
                Width = 47
                Height = 16
                Caption = 'Produto'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clBlack
                Font.Height = -13
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
              end
              object Label16: TLabel
                Left = 4
                Top = 56
                Width = 42
                Height = 16
                Caption = 'Servi'#231'o'
              end
              object Label18: TLabel
                Left = 576
                Top = 16
                Width = 78
                Height = 16
                Caption = 'Valor Unit'#225'rio'
              end
              object Label19: TLabel
                Left = 660
                Top = 16
                Width = 62
                Height = 16
                Caption = 'Valor Total'
              end
              object Label73: TLabel
                Left = 495
                Top = 56
                Width = 80
                Height = 16
                Caption = '% Base INSS'
              end
              object LtotalItens: TLabel
                Left = 229
                Top = 146
                Width = 188
                Height = 16
                AutoSize = False
                Caption = 'Total itens :'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clRed
                Font.Height = -13
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
              end
              object Label3: TLabel
                Left = 576
                Top = 56
                Width = 71
                Height = 16
                Caption = '% Base ISS'
              end
              object BtnMudaSituacao: TBitBtn
                Left = 628
                Top = 141
                Width = 117
                Height = 26
                Caption = 'Cancelar'
                TabOrder = 11
                OnClick = BtnMudaSituacaoClick
                Glyph.Data = {
                  76010000424D7601000000000000760000002800000020000000100000000100
                  0400000000000001000000000000000000001000000000000000000000000000
                  8000008000000080800080000000800080008080000080808000C0C0C0000000
                  FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
                  3333333333FFFFF3333333333999993333333333F77777FFF333333999999999
                  33333337777FF377FF3333993370739993333377FF373F377FF3399993000339
                  993337777F777F3377F3393999707333993337F77737333337FF993399933333
                  399377F3777FF333377F993339903333399377F33737FF33377F993333707333
                  399377F333377FF3377F993333101933399377F333777FFF377F993333000993
                  399377FF3377737FF7733993330009993933373FF3777377F7F3399933000399
                  99333773FF777F777733339993707339933333773FF7FFF77333333999999999
                  3333333777333777333333333999993333333333377777333333}
                NumGlyphs = 2
              end
              object EQuantidade: TEdit
                Left = 495
                Top = 31
                Width = 70
                Height = 22
                Hint = '(F5) Captura Quantidade Local'
                ParentShowHint = False
                ShowHint = True
                TabOrder = 2
                Text = '0'
                OnEnter = EQuantidadeEnter
                OnExit = EQuantidadeExit
                OnKeyPress = EQuantidadeKeyPress
              end
              object DBLCBProduto: TDBLookupComboBox
                Left = 4
                Top = 32
                Width = 486
                Height = 22
                Hint = '(F3) Visualizar Descri'#231#227'o'
                KeyField = 'PROD_CODIGO'
                ListField = 'PROD_DESCRICAOSAI'
                ListSource = DSProduto
                ParentShowHint = False
                ShowHint = True
                TabOrder = 0
                OnExit = DBLCBProdutoExit
                OnKeyDown = DBLCBProdutoKeyDown
              end
              object MServico: TMemo
                Left = 4
                Top = 72
                Width = 486
                Height = 67
                MaxLength = 200
                TabOrder = 1
              end
              object EValorunitario: TEdit
                Left = 576
                Top = 31
                Width = 79
                Height = 22
                TabOrder = 3
                Text = '0'
                OnEnter = EQuantidadeEnter
                OnExit = EQuantidadeExit
                OnKeyPress = EQuantidadeKeyPress
              end
              object EValorTotal: TEdit
                Left = 660
                Top = 31
                Width = 81
                Height = 22
                TabOrder = 4
                Text = '0'
                OnEnter = EQuantidadeEnter
                OnExit = EQuantidadeExit
                OnKeyPress = EQuantidadeKeyPress
              end
              object EBaseServicoINSS: TEdit
                Left = 495
                Top = 72
                Width = 55
                Height = 22
                TabOrder = 5
                Text = '100'
                OnEnter = EQuantidadeEnter
                OnExit = EBaseServicoINSSExit
                OnKeyPress = EQuantidadeKeyPress
              end
              object BtnIncluirProduto: TBitBtn
                Tag = 1
                Left = 5
                Top = 144
                Width = 69
                Height = 24
                Caption = 'I&ncluir'
                TabOrder = 7
                OnClick = BtnIncluirProdutoClick
              end
              object BtnAlterarProduto: TBitBtn
                Tag = 1
                Left = 79
                Top = 144
                Width = 69
                Height = 24
                Caption = 'Alterar'
                TabOrder = 8
                OnClick = BtnAlterarProdutoClick
              end
              object BtnDeletarProduto: TBitBtn
                Tag = 1
                Left = 153
                Top = 144
                Width = 69
                Height = 24
                Caption = 'Excluir'
                TabOrder = 9
                OnClick = BtnDeletarProdutoClick
              end
              object DBGrid1: TDBGrid
                Tag = 5
                Left = 1
                Top = 171
                Width = 832
                Height = 79
                Align = alBottom
                DataSource = DSItensNotaFiscal
                Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgCancelOnExit]
                TabOrder = 12
                TitleFont.Charset = ANSI_CHARSET
                TitleFont.Color = clWindowText
                TitleFont.Height = -13
                TitleFont.Name = 'Arial'
                TitleFont.Style = []
                OnCellClick = DBGrid1CellClick
                OnKeyUp = DBGrid1KeyUp
                Columns = <
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_CODIGO'
                    Title.Caption = 'Item'
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_PEDIDOVENDA'
                    Title.Caption = 'Pedido'
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_ITEMPEDIDOVENDA'
                    Title.Caption = 'Item pedido'
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'LOC_DESCRICAO'
                    Title.Caption = 'Local'
                    Width = 241
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'PROD_DESCRICAOSAI'
                    Title.Caption = 'Produto'
                    Width = 412
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_COMPLEMENTOPRODUTO'
                    Title.Caption = 'Complemento'
                    Width = 164
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_SERVICO'
                    Title.Caption = 'Servi'#231'o'
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_CLASSFISCAL2'
                    Title.Caption = 'Classif. Fiscal2'
                    Width = 86
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_CLASSFISCAL9'
                    Title.Caption = 'Classif. Fiscal9'
                    Width = 83
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_SITUACAOTRIBUTARIA'
                    Title.Caption = 'Situa'#231#227'o Tribut'#225'ria'
                    Width = 105
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_QUANTIDADE'
                    Title.Caption = 'Quantidade'
                    Width = 76
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_VALORUNITARIO'
                    Title.Caption = 'Vr Unit'#225'rio'
                    Width = 79
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_VALORTOTAL'
                    Title.Caption = 'Vr Total'
                    Width = 103
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_PERCICMS'
                    Title.Caption = '% ICMS'
                    Width = 42
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_PERCREDBASEICMS'
                    Title.Caption = '% Redu'#231#227'o Base ICMS'
                    Width = 127
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_PERCIPI'
                    Title.Caption = '% IPI'
                    Width = 42
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_PERCREDBASEIPI'
                    Title.Caption = '% Redu'#231#227'o Base IPI'
                    Width = 108
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_VALORIPI'
                    Title.Caption = 'Valor IPI'
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_PESOBRUTO'
                    Title.Caption = 'Peso Bruto'
                    Visible = True
                  end
                  item
                    Expanded = False
                    FieldName = 'ITENSNF_PESOLIQUIDO'
                    Title.Caption = 'Peso Liqu'#237'do'
                    Width = 96
                    Visible = True
                  end>
              end
              object BtnEmissao: TBitBtn
                Left = 505
                Top = 141
                Width = 117
                Height = 26
                Caption = 'Emiss'#227'o'
                TabOrder = 10
                OnClick = BtnEmissaoClick
                Glyph.Data = {
                  36010000424D3601000000000000760000002800000012000000100000000100
                  040000000000C000000000000000000000001000000000000000000000000000
                  8000008000000080800080000000800080008080000080808000C0C0C0000000
                  FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF008F0000000000
                  0000080000008F7777777777777708000000F77777777777777770000000F888
                  88888888888880000000F8A288888808080880000000F88FFFFFFFFFFFFF8000
                  0000FFF8888888888888FF000000888FFFFFFFFFFFF788000000888F88888888
                  88F788000000888FFFFFFFFFFFF788000000888F8888888888F788000000888F
                  FFFFFFFFFFF788000000888F8888888888F788000000888FFFFFFFFFF7778800
                  0000888FFFFFFFFFF7F888000000888FFFFFFFFFF78888000000}
              end
              object EBaseServicoISS: TEdit
                Left = 576
                Top = 72
                Width = 55
                Height = 22
                TabOrder = 6
                Text = '100'
                OnEnter = EQuantidadeEnter
                OnExit = EBaseServicoINSSExit
                OnKeyPress = EQuantidadeKeyPress
              end
            end
          end
          object TSValores: TTabSheet
            Caption = 'Valores'
            ImageIndex = 3
            object Label44: TLabel
              Left = 2
              Top = 4
              Width = 45
              Height = 16
              Caption = '% IRRF'
            end
            object Label29: TLabel
              Left = 283
              Top = 4
              Width = 55
              Height = 16
              Caption = 'Desconto'
              FocusControl = DBEvalorDescontoServico
            end
            object Label43: TLabel
              Left = 2
              Top = 250
              Width = 37
              Height = 16
              Caption = '% ISS'
              FocusControl = DBEPercISS
            end
            object Label45: TLabel
              Left = 2
              Top = 201
              Width = 46
              Height = 16
              Caption = '% INSS'
              FocusControl = DBEPercINSS
            end
            object Label70: TLabel
              Left = 2
              Top = 50
              Width = 37
              Height = 16
              Caption = '% PIS'
              FocusControl = DBEpercPIS
            end
            object Label71: TLabel
              Left = 2
              Top = 102
              Width = 64
              Height = 16
              Caption = '% COFINS'
              FocusControl = DBEPercCOFINS
            end
            object Label72: TLabel
              Left = 2
              Top = 151
              Width = 48
              Height = 16
              Caption = '% CSLL'
              FocusControl = DBEPercCSLL
            end
            object Label50: TLabel
              Left = 286
              Top = 177
              Width = 93
              Height = 16
              Caption = 'Valor Final Nota'
              FocusControl = DBEValorFinalNota
            end
            object Label9: TLabel
              Left = 73
              Top = 250
              Width = 55
              Height = 16
              Caption = 'Valor ISS'
            end
            object Label10: TLabel
              Left = 73
              Top = 4
              Width = 63
              Height = 16
              Caption = 'Valor IRRF'
              FocusControl = DBEVALORIRRF
            end
            object Label11: TLabel
              Left = 73
              Top = 50
              Width = 55
              Height = 16
              Caption = 'Valor PIS'
              FocusControl = DBEVALORPIS
            end
            object Label12: TLabel
              Left = 73
              Top = 102
              Width = 82
              Height = 16
              Caption = 'Valor COFINS'
              FocusControl = DBEVALORCOFINS
            end
            object Label13: TLabel
              Left = 73
              Top = 151
              Width = 66
              Height = 16
              Caption = 'Valor CSLL'
              FocusControl = DBEVALORCSLL
            end
            object Label14: TLabel
              Left = 73
              Top = 201
              Width = 64
              Height = 16
              Caption = 'Valor INSS'
              FocusControl = DBEVALORINSS
            end
            object Label17: TLabel
              Left = 286
              Top = 98
              Width = 89
              Height = 16
              Caption = 'Valor Reten'#231#227'o'
              FocusControl = DBEVALORRETENCAO
            end
            object Label4: TLabel
              Left = 450
              Top = 63
              Width = 24
              Height = 16
              Caption = 'Obs'
            end
            object Label76: TLabel
              Left = 450
              Top = 0
              Width = 105
              Height = 16
              Caption = 'Forma pagamento'
            end
            object Label20: TLabel
              Left = 286
              Top = 49
              Width = 61
              Height = 16
              Caption = 'Valor Nota'
              FocusControl = DBEValorFinalNota
            end
            object Label32: TLabel
              Left = 0
              Top = 329
              Width = 87
              Height = 16
              Caption = 'Cancelamento'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clRed
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object Label21: TLabel
              Left = 171
              Top = 4
              Width = 55
              Height = 16
              Caption = 'Reten'#231#227'o'
              FocusControl = DBEVALORIRRF
            end
            object Panel4: TPanel
              Left = 450
              Top = 80
              Width = 300
              Height = 249
              BorderStyle = bsSingle
              Ctl3D = False
              ParentCtl3D = False
              TabOrder = 35
            end
            object DBEvalorDescontoServico: TDBEdit
              Left = 286
              Top = 20
              Width = 88
              Height = 22
              DataField = 'NF_VALORDESCONTOSERVICO'
              TabOrder = 17
              OnEnter = DBEPercIRRFEnter
              OnExit = DBEPercIRRFExit
              OnKeyPress = DBEPercINSSKeyPress
            end
            object DBEPercISS: TDBEdit
              Left = 2
              Top = 268
              Width = 46
              Height = 22
              Color = clWhite
              DataField = 'NF_PERCISS'
              TabOrder = 14
              OnEnter = DBEPercIRRFEnter
              OnExit = DBEPercIRRFExit
              OnKeyPress = DBEPercINSSKeyPress
            end
            object DBEPercIRRF: TDBEdit
              Left = 2
              Top = 22
              Width = 46
              Height = 22
              Color = clWhite
              DataField = 'NF_PERCIRRF'
              TabOrder = 0
              OnEnter = DBEPercIRRFEnter
              OnExit = DBEPercIRRFExit
            end
            object DBEPercINSS: TDBEdit
              Left = 2
              Top = 219
              Width = 46
              Height = 22
              Color = clWhite
              DataField = 'NF_PERCINSS'
              TabOrder = 12
              OnEnter = DBEPercIRRFEnter
              OnExit = DBEPercIRRFExit
              OnKeyPress = DBEPercINSSKeyPress
            end
            object DBEpercPIS: TDBEdit
              Left = 2
              Top = 69
              Width = 46
              Height = 22
              Color = clWhite
              DataField = 'NF_PERCPIS'
              TabOrder = 3
            end
            object DBEPercCOFINS: TDBEdit
              Left = 2
              Top = 121
              Width = 46
              Height = 22
              Color = clWhite
              DataField = 'NF_PERCCOFINS'
              TabOrder = 6
            end
            object DBEPercCSLL: TDBEdit
              Left = 2
              Top = 170
              Width = 46
              Height = 22
              Color = clWhite
              DataField = 'NF_PERCCSLL'
              TabOrder = 9
            end
            object DBEValorFinalNota: TDBEdit
              Left = 286
              Top = 197
              Width = 88
              Height = 22
              Color = clWhite
              DataField = 'NF_VALORFINALNOTA'
              ReadOnly = True
              TabOrder = 21
            end
            object DBEVALORISS: TDBEdit
              Left = 73
              Top = 268
              Width = 87
              Height = 22
              DataField = 'NF_VALORISS'
              TabOrder = 15
              OnEnter = DBEPercIRRFEnter
              OnExit = DBEPercIRRFExit
              OnKeyPress = DBEPercINSSKeyPress
            end
            object DBEVALORIRRF: TDBEdit
              Left = 73
              Top = 22
              Width = 87
              Height = 22
              Color = clWhite
              DataField = 'NF_VALORIRRF'
              ReadOnly = True
              TabOrder = 1
            end
            object DBEVALORPIS: TDBEdit
              Left = 73
              Top = 69
              Width = 87
              Height = 22
              Color = clWhite
              DataField = 'NF_VALORPIS'
              ReadOnly = True
              TabOrder = 4
            end
            object DBEVALORCOFINS: TDBEdit
              Left = 73
              Top = 121
              Width = 87
              Height = 22
              Color = clWhite
              DataField = 'NF_VALORCOFINS'
              ReadOnly = True
              TabOrder = 7
            end
            object DBEVALORCSLL: TDBEdit
              Left = 73
              Top = 170
              Width = 87
              Height = 22
              Color = clWhite
              DataField = 'NF_VALORCSLL'
              ReadOnly = True
              TabOrder = 10
            end
            object DBEVALORINSS: TDBEdit
              Left = 73
              Top = 219
              Width = 87
              Height = 22
              Color = clWhite
              DataField = 'NF_VALORINSS'
              ReadOnly = True
              TabOrder = 13
            end
            object DBEVALORRETENCAO: TDBEdit
              Left = 286
              Top = 118
              Width = 88
              Height = 22
              Color = clWhite
              DataField = 'NF_RETENCAO'
              ReadOnly = True
              TabOrder = 19
            end
            object DBCHBRETEMISS: TDBCheckBox
              Left = 191
              Top = 272
              Width = 19
              Height = 21
              Color = clBtnFace
              DataField = 'NF_RETEMISS'
              ParentColor = False
              TabOrder = 16
              ValueChecked = '1'
              ValueUnchecked = '0'
              OnClick = DBCHBRETEMISSClick
            end
            object DBChBAbateretencao: TDBCheckBox
              Left = 286
              Top = 148
              Width = 97
              Height = 21
              Hint = 'Abater Reten'#231#227'o'
              Caption = 'Abate reten.'
              Color = clBtnFace
              DataField = 'NF_ABATERETENCAO'
              ParentColor = False
              TabOrder = 20
              ValueChecked = '1'
              ValueUnchecked = '0'
              OnClick = DBCHBRETEMISSClick
            end
            object DBMemo1: TDBMemo
              Left = 756
              Top = 209
              Width = 486
              Height = 74
              DataField = 'NF_OBS'
              TabOrder = 34
              Visible = False
            end
            object DBEFormaPagamento: TDBEdit
              Left = 450
              Top = 20
              Width = 240
              Height = 22
              DataField = 'NF_FORMAPAGAMENTO'
              TabOrder = 22
            end
            object DBEVALORNOTAFISCAL: TDBEdit
              Left = 286
              Top = 69
              Width = 88
              Height = 22
              Color = clWhite
              DataField = 'NF_VALORNOTAFISCAL'
              ReadOnly = True
              TabOrder = 18
            end
            object DBMCancelamento: TDBMemo
              Left = 0
              Top = 345
              Width = 486
              Height = 37
              Color = clWhite
              DataField = 'NF_CANCELAMENTO'
              MaxLength = 203
              ReadOnly = True
              TabOrder = 33
            end
            object dbeNfObs1: TDBEdit
              Left = 453
              Top = 84
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS1'
              ParentCtl3D = False
              TabOrder = 23
            end
            object dbeNfObs2: TDBEdit
              Left = 453
              Top = 108
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS2'
              ParentCtl3D = False
              TabOrder = 24
            end
            object dbeNfObs3: TDBEdit
              Left = 453
              Top = 132
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS3'
              ParentCtl3D = False
              TabOrder = 25
            end
            object dbeNfObs4: TDBEdit
              Left = 453
              Top = 156
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS4'
              ParentCtl3D = False
              TabOrder = 26
            end
            object dbeNfObs10: TDBEdit
              Left = 453
              Top = 299
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS10'
              ParentCtl3D = False
              TabOrder = 32
            end
            object dbeNfObs5: TDBEdit
              Left = 453
              Top = 180
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS5'
              ParentCtl3D = False
              TabOrder = 27
            end
            object dbeNfObs6: TDBEdit
              Left = 453
              Top = 203
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS6'
              ParentCtl3D = False
              TabOrder = 28
            end
            object dbeNfObs7: TDBEdit
              Left = 453
              Top = 226
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS7'
              ParentCtl3D = False
              TabOrder = 29
            end
            object dbeNfObs8: TDBEdit
              Left = 453
              Top = 250
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS8'
              ParentCtl3D = False
              TabOrder = 30
            end
            object dbeNfObs9: TDBEdit
              Left = 453
              Top = 274
              Width = 292
              Height = 26
              BorderStyle = bsNone
              Ctl3D = False
              DataField = 'NF_OBS9'
              ParentCtl3D = False
              TabOrder = 31
            end
            object DBCHBRETEMINSS: TDBCheckBox
              Left = 191
              Top = 225
              Width = 19
              Height = 21
              Color = clBtnFace
              DataField = 'NF_RETEMINSS'
              ParentColor = False
              TabOrder = 36
              ValueChecked = '1'
              ValueUnchecked = '0'
              OnClick = DBCHBRETEMISSClick
            end
            object cbRetemCSLL: TDBCheckBox
              Left = 191
              Top = 176
              Width = 19
              Height = 21
              Color = clBtnFace
              DataField = 'NF_RETEMCSLL'
              ParentColor = False
              TabOrder = 11
              ValueChecked = '1'
              ValueUnchecked = '0'
              OnClick = DBCHBRETEMISSClick
            end
            object cbRetemCOFINS: TDBCheckBox
              Left = 191
              Top = 127
              Width = 19
              Height = 21
              Color = clBtnFace
              DataField = 'NF_RETEMCOFINS'
              ParentColor = False
              TabOrder = 8
              ValueChecked = '1'
              ValueUnchecked = '0'
              OnClick = DBCHBRETEMISSClick
            end
            object cbRetemPIS: TDBCheckBox
              Left = 191
              Top = 78
              Width = 19
              Height = 20
              Color = clBtnFace
              DataField = 'NF_RETEMPIS'
              ParentColor = False
              TabOrder = 5
              ValueChecked = '1'
              ValueUnchecked = '0'
              OnClick = DBCHBRETEMISSClick
            end
            object cbRetemIRRF: TDBCheckBox
              Left = 191
              Top = 28
              Width = 19
              Height = 21
              Color = clBtnFace
              DataField = 'NF_RETEMIRRF'
              ParentColor = False
              TabOrder = 2
              ValueChecked = '1'
              ValueUnchecked = '0'
              OnClick = DBCHBRETEMISSClick
            end
          end
          object TSCobranca: TTabSheet
            Caption = 'Fechamento'
            ImageIndex = 2
            object Label30: TLabel
              Left = 4
              Top = 1
              Width = 44
              Height = 16
              Caption = 'Codigo'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clBlue
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object DBText7: TDBText
              Left = 4
              Top = 20
              Width = 78
              Height = 16
              DataField = 'COB_CODIGO'
              DataSource = DSCobranca
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clRed
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object Label31: TLabel
              Left = 89
              Top = 1
              Width = 29
              Height = 16
              Caption = 'Data'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clBlue
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object DBText8: TDBText
              Left = 89
              Top = 20
              Width = 71
              Height = 16
              DataField = 'COB_DATA'
              DataSource = DSCobranca
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clRed
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object Label33: TLabel
              Left = 182
              Top = 1
              Width = 32
              Height = 16
              Caption = 'Valor'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clBlue
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object DBText9: TDBText
              Left = 182
              Top = 20
              Width = 120
              Height = 16
              DataField = 'COB_VALOR'
              DataSource = DSCobranca
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clRed
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object Label67: TLabel
              Left = 4
              Top = 143
              Width = 72
              Height = 16
              Caption = 'Presta'#231#245'es '
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clBlue
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object DBGrid3: TDBGrid
              Tag = 5
              Left = 0
              Top = 165
              Width = 834
              Height = 193
              Align = alBottom
              DataSource = DSCobranca
              Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgCancelOnExit]
              TabOrder = 0
              TitleFont.Charset = ANSI_CHARSET
              TitleFont.Color = clWindowText
              TitleFont.Height = -13
              TitleFont.Name = 'Arial'
              TitleFont.Style = []
              Columns = <
                item
                  Expanded = False
                  FieldName = 'PRESTCOB_CODIGO'
                  Title.Caption = 'Item'
                  Visible = True
                end
                item
                  Expanded = False
                  FieldName = 'PRESTCOB_DATAVENCIMENTO'
                  Title.Caption = 'Data Vencimento'
                  Width = 90
                  Visible = True
                end
                item
                  Expanded = False
                  FieldName = 'PRESTCOB_VALOR'
                  Title.Caption = 'Valor'
                  Visible = True
                end
                item
                  Expanded = False
                  FieldName = 'PRESTCOB_BANCO'
                  Title.Caption = 'Banco'
                  Visible = True
                end
                item
                  Expanded = False
                  FieldName = 'PRESTCOB_AGENCIA'
                  Title.Caption = 'Ag'#234'ncia'
                  Visible = True
                end
                item
                  Expanded = False
                  FieldName = 'PRESTCOB_CHEQUE'
                  Title.Caption = 'Cheque'
                  Visible = True
                end
                item
                  Expanded = False
                  FieldName = 'PRESTCOB_EMITENTE'
                  Title.Caption = 'Emitente'
                  Visible = True
                end>
            end
            object BtnGeraCobranca: TBitBtn
              Left = 527
              Top = 16
              Width = 135
              Height = 25
              Caption = 'Fechamento'
              TabOrder = 1
              OnClick = BtnGeraCobrancaClick
            end
          end
        end
        object Panel5: TPanel
          Left = 1
          Top = 36
          Width = 842
          Height = 27
          Align = alTop
          TabOrder = 3
          object Label34: TLabel
            Left = 6
            Top = 5
            Width = 36
            Height = 15
            Caption = 'N'#186' NF:'
            Font.Charset = ANSI_CHARSET
            Font.Color = clBlack
            Font.Height = -13
            Font.Name = 'Times New Roman'
            Font.Style = [fsBold]
            ParentFont = False
          end
          object DBText10: TDBText
            Left = 53
            Top = 5
            Width = 49
            Height = 17
            DataField = 'NF_NUMERONF'
            Font.Charset = ANSI_CHARSET
            Font.Color = clBlack
            Font.Height = -13
            Font.Name = 'Times New Roman'
            Font.Style = []
            ParentFont = False
          end
          object Label23: TLabel
            Left = 116
            Top = 5
            Width = 44
            Height = 15
            Caption = 'Cliente:'
            Font.Charset = ANSI_CHARSET
            Font.Color = clBlack
            Font.Height = -13
            Font.Name = 'Times New Roman'
            Font.Style = [fsBold]
            ParentFont = False
          end
          object LbCliente: TLabel
            Left = 174
            Top = 5
            Width = 310
            Height = 17
            AutoSize = False
            Font.Charset = ANSI_CHARSET
            Font.Color = clWindowText
            Font.Height = -13
            Font.Name = 'Times New Roman'
            Font.Style = []
            ParentFont = False
          end
          object Label88: TLabel
            Left = 606
            Top = 5
            Width = 66
            Height = 15
            Caption = 'Valor Total:'
            Font.Charset = ANSI_CHARSET
            Font.Color = clBlack
            Font.Height = -13
            Font.Name = 'Times New Roman'
            Font.Style = [fsBold]
            ParentFont = False
          end
          object LbValorTotal: TLabel
            Left = 686
            Top = 5
            Width = 64
            Height = 17
            Alignment = taRightJustify
            AutoSize = False
            Font.Charset = ANSI_CHARSET
            Font.Color = clWindowText
            Font.Height = -13
            Font.Name = 'Times New Roman'
            Font.Style = []
            ParentFont = False
          end
        end
      end
    end
  end
  inherited QCadastro: TQuery
    AfterInsert = QCadastroAfterInsert
    SQL.Strings = (
      'Select * from NotaFiscalVenda'
      'Order By NF_Codigo'
      '')
    object QCadastroNF_CODIGO: TIntegerField
      FieldName = 'NF_CODIGO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CODIGO'
    end
    object QCadastroNF_SITUACAO: TIntegerField
      FieldName = 'NF_SITUACAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SITUACAO'
    end
    object QCadastroNF_NUMERONF: TIntegerField
      FieldName = 'NF_NUMERONF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMERONF'
    end
    object QCadastroNF_SERIENF: TStringField
      FieldName = 'NF_SERIENF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SERIENF'
      Size = 3
    end
    object QCadastroNF_NUMEROSELO: TIntegerField
      FieldName = 'NF_NUMEROSELO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMEROSELO'
    end
    object QCadastroNF_SERIESELO: TStringField
      FieldName = 'NF_SERIESELO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SERIESELO'
      Size = 2
    end
    object QCadastroNF_DATAEMISSAO: TDateTimeField
      FieldName = 'NF_DATAEMISSAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAEMISSAO'
    end
    object QCadastroNF_TIPOVENDA: TIntegerField
      FieldName = 'NF_TIPOVENDA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TIPOVENDA'
    end
    object QCadastroNF_TIPO: TIntegerField
      FieldName = 'NF_TIPO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TIPO'
    end
    object QCadastroNF_PEDIDOVENDA: TIntegerField
      FieldName = 'NF_PEDIDOVENDA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PEDIDOVENDA'
    end
    object QCadastroNF_ROMANEIO: TIntegerField
      FieldName = 'NF_ROMANEIO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ROMANEIO'
    end
    object QCadastroNF_CLIENTE: TIntegerField
      FieldName = 'NF_CLIENTE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CLIENTE'
    end
    object QCadastroNF_VENDEDOR: TIntegerField
      FieldName = 'NF_VENDEDOR'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VENDEDOR'
    end
    object QCadastroNF_PERCCOMISSAO: TFloatField
      FieldName = 'NF_PERCCOMISSAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCOMISSAO'
    end
    object QCadastroNF_CFOPNF: TIntegerField
      FieldName = 'NF_CFOPNF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CFOPNF'
    end
    object QCadastroNF_VALORSERVICO: TFloatField
      FieldName = 'NF_VALORSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORSERVICO'
    end
    object QCadastroNF_VALORDESCONTOSERVICO: TFloatField
      FieldName = 'NF_VALORDESCONTOSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORDESCONTOSERVICO'
    end
    object QCadastroNF_VALORFINALSERVICO: TFloatField
      FieldName = 'NF_VALORFINALSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALSERVICO'
    end
    object QCadastroNF_VALORPRODUTO: TFloatField
      FieldName = 'NF_VALORPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORPRODUTO'
    end
    object QCadastroNF_VALORDESCONTOPRODUTO: TFloatField
      FieldName = 'NF_VALORDESCONTOPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORDESCONTOPRODUTO'
    end
    object QCadastroNF_VALORFINALPRODUTO: TFloatField
      FieldName = 'NF_VALORFINALPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALPRODUTO'
    end
    object QCadastroNF_PERCISS: TFloatField
      FieldName = 'NF_PERCISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCISS'
    end
    object QCadastroNF_PERCIRRF: TFloatField
      FieldName = 'NF_PERCIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCIRRF'
    end
    object QCadastroNF_PERCINSS: TFloatField
      FieldName = 'NF_PERCINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCINSS'
    end
    object QCadastroNF_VALORFRETE: TFloatField
      FieldName = 'NF_VALORFRETE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFRETE'
    end
    object QCadastroNF_VALORSEGURO: TFloatField
      FieldName = 'NF_VALORSEGURO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORSEGURO'
    end
    object QCadastroNF_VALOROUTROS: TFloatField
      FieldName = 'NF_VALOROUTROS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALOROUTROS'
    end
    object QCadastroNF_VALORIPI: TFloatField
      FieldName = 'NF_VALORIPI'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORIPI'
    end
    object QCadastroNF_VALORFINALNOTA: TFloatField
      FieldName = 'NF_VALORFINALNOTA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALNOTA'
    end
    object QCadastroNF_BASEICMSNORM: TFloatField
      FieldName = 'NF_BASEICMSNORM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_BASEICMSNORM'
    end
    object QCadastroNF_VALORICMSNORM: TFloatField
      FieldName = 'NF_VALORICMSNORM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORICMSNORM'
    end
    object QCadastroNF_BASEICMSSUB: TFloatField
      FieldName = 'NF_BASEICMSSUB'
      Origin = 'BASE.NOTAFISCALVENDA.NF_BASEICMSSUB'
    end
    object QCadastroNF_VALORICMSSUB: TFloatField
      FieldName = 'NF_VALORICMSSUB'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORICMSSUB'
    end
    object QCadastroNF_TRANSPORTADORA: TIntegerField
      FieldName = 'NF_TRANSPORTADORA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TRANSPORTADORA'
    end
    object QCadastroNF_FRETE: TIntegerField
      FieldName = 'NF_FRETE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_FRETE'
    end
    object QCadastroNF_PLACA: TStringField
      FieldName = 'NF_PLACA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PLACA'
      Size = 10
    end
    object QCadastroNF_PLACAUF: TStringField
      FieldName = 'NF_PLACAUF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PLACAUF'
      Size = 2
    end
    object QCadastroNF_QUANTIDADEVOLUME: TStringField
      FieldName = 'NF_QUANTIDADEVOLUME'
      Origin = 'BASE.NOTAFISCALVENDA.NF_QUANTIDADEVOLUME'
      Size = 10
    end
    object QCadastroNF_ESPECIEVOLUME: TStringField
      FieldName = 'NF_ESPECIEVOLUME'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ESPECIEVOLUME'
      Size = 10
    end
    object QCadastroNF_MARCA: TStringField
      FieldName = 'NF_MARCA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MARCA'
      Size = 10
    end
    object QCadastroNF_NUMERO: TStringField
      FieldName = 'NF_NUMERO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMERO'
      Size = 10
    end
    object QCadastroNF_PESOBRUTO: TFloatField
      FieldName = 'NF_PESOBRUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PESOBRUTO'
    end
    object QCadastroNF_PESOLIQUIDO: TFloatField
      FieldName = 'NF_PESOLIQUIDO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PESOLIQUIDO'
    end
    object QCadastroNF_DADOSADICONAIS: TStringField
      FieldName = 'NF_DADOSADICONAIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DADOSADICONAIS'
      Size = 203
    end
    object QCadastroNF_TEXTOLEGAL: TStringField
      FieldName = 'NF_TEXTOLEGAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TEXTOLEGAL'
      Size = 203
    end
    object QCadastroUSUARIO: TStringField
      FieldName = 'USUARIO'
      Origin = 'BASE.NOTAFISCALVENDA.USUARIO'
      Size = 10
    end
    object QCadastroDATAMODIFICACAO: TDateTimeField
      FieldName = 'DATAMODIFICACAO'
      Origin = 'BASE.NOTAFISCALVENDA.DATAMODIFICACAO'
    end
    object QCadastroCODIGOEMPRESA: TIntegerField
      FieldName = 'CODIGOEMPRESA'
      Origin = 'BASE.NOTAFISCALVENDA.CODIGOEMPRESA'
    end
    object QCadastroNF_CANCELAMENTO: TStringField
      FieldName = 'NF_CANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CANCELAMENTO'
      Size = 252
    end
    object QCadastroNF_PERCPIS: TFloatField
      FieldName = 'NF_PERCPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCPIS'
    end
    object QCadastroNF_PERCCOFINS: TFloatField
      FieldName = 'NF_PERCCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCOFINS'
    end
    object QCadastroNF_PERCCSLL: TFloatField
      FieldName = 'NF_PERCCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCSLL'
    end
    object QCadastroNF_DATAVENCIMENTO: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO'
    end
    object QCadastroNF_RETEMISS: TSmallintField
      FieldName = 'NF_RETEMISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMISS'
    end
    object QCadastroNF_OBS: TStringField
      FieldName = 'NF_OBS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS'
      Size = 200
    end
    object QCadastroNF_ABATERETENCAO: TSmallintField
      FieldName = 'NF_ABATERETENCAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ABATERETENCAO'
    end
    object QCadastroNF_FORMAPAGAMENTO: TStringField
      FieldName = 'NF_FORMAPAGAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_FORMAPAGAMENTO'
      Size = 40
    end
    object QCadastroNF_VALORNOTAFISCAL: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL'
    end
    object QCadastroNF_VALORIRRF: TFloatField
      FieldName = 'NF_VALORIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORIRRF'
    end
    object QCadastroNF_VALORPIS: TFloatField
      FieldName = 'NF_VALORPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORPIS'
    end
    object QCadastroNF_VALORCOFINS: TFloatField
      FieldName = 'NF_VALORCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORCOFINS'
    end
    object QCadastroNF_VALORCSLL: TFloatField
      FieldName = 'NF_VALORCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORCSLL'
    end
    object QCadastroNF_VALORINSS: TFloatField
      FieldName = 'NF_VALORINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORINSS'
    end
    object QCadastroNF_VALORISS: TFloatField
      FieldName = 'NF_VALORISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORISS'
    end
    object QCadastroNF_RETENCAO: TFloatField
      FieldName = 'NF_RETENCAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETENCAO'
    end
    object QCadastroNF_COBRANCAPROGRAMADA: TIntegerField
      FieldName = 'NF_COBRANCAPROGRAMADA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_COBRANCAPROGRAMADA'
    end
    object QCadastroNF_MESANOCOBRANCAPROGRAMADA: TStringField
      FieldName = 'NF_MESANOCOBRANCAPROGRAMADA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MESANOCOBRANCAPROGRAMADA'
    end
    object QCadastroNF_OBS1: TStringField
      FieldName = 'NF_OBS1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS1'
      Size = 252
    end
    object QCadastroNF_OBS2: TStringField
      FieldName = 'NF_OBS2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS2'
      Size = 252
    end
    object QCadastroNF_OBS3: TStringField
      FieldName = 'NF_OBS3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS3'
      Size = 252
    end
    object QCadastroNF_OBS4: TStringField
      FieldName = 'NF_OBS4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS4'
      Size = 252
    end
    object QCadastroNF_OBS5: TStringField
      FieldName = 'NF_OBS5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS5'
      Size = 252
    end
    object QCadastroNF_VALORNOTAFISCAL2: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL2'
    end
    object QCadastroNF_VALORNOTAFISCAL3: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL3'
    end
    object QCadastroNF_DATAVENCIMENTO2: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO2'
    end
    object QCadastroNF_DATAVENCIMENTO3: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO3'
    end
    object QCadastroNF_VALORNOTAFISCAL1: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL1'
    end
    object QCadastroNF_DATAVENCIMENTO1: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO1'
    end
    object QCadastroNF_TEXTOLEGAL2: TStringField
      FieldName = 'NF_TEXTOLEGAL2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TEXTOLEGAL2'
      Size = 203
    end
    object QCadastroNF_DATACANCELAMENTO: TDateTimeField
      FieldName = 'NF_DATACANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATACANCELAMENTO'
    end
    object QCadastroNF_USUARIOCANCELAMENTO: TStringField
      FieldName = 'NF_USUARIOCANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_USUARIOCANCELAMENTO'
    end
    object QCadastroNF_OBS6: TStringField
      FieldName = 'NF_OBS6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS6'
      Size = 252
    end
    object QCadastroNF_OBS7: TStringField
      FieldName = 'NF_OBS7'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS7'
      Size = 252
    end
    object QCadastroNF_OBS8: TStringField
      FieldName = 'NF_OBS8'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS8'
      Size = 252
    end
    object QCadastroNF_OBS9: TStringField
      FieldName = 'NF_OBS9'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS9'
      Size = 252
    end
    object QCadastroNF_OBS10: TStringField
      FieldName = 'NF_OBS10'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS10'
      Size = 252
    end
    object QCadastroNF_RETEMINSS: TSmallintField
      FieldName = 'NF_RETEMINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMINSS'
    end
    object QCadastroNF_RETEMIRRF: TSmallintField
      FieldName = 'NF_RETEMIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMIRRF'
    end
    object QCadastroNF_RETEMPIS: TSmallintField
      FieldName = 'NF_RETEMPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMPIS'
    end
    object QCadastroNF_RETEMCOFINS: TSmallintField
      FieldName = 'NF_RETEMCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMCOFINS'
    end
    object QCadastroNF_RETEMCSLL: TSmallintField
      FieldName = 'NF_RETEMCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMCSLL'
    end
    object QCadastroNF_MUNICIPIO: TIntegerField
      FieldName = 'NF_MUNICIPIO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MUNICIPIO'
    end
    object QCadastroNF_PERCENTUAL_DESCONTO_PRODUTO: TFloatField
      FieldName = 'NF_PERCENTUAL_DESCONTO_PRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCENTUAL_DESCONTO_PRODUTO'
    end
    object QCadastroNF_PERCENTUAL_DESCONTO_SERVICO: TFloatField
      FieldName = 'NF_PERCENTUAL_DESCONTO_SERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCENTUAL_DESCONTO_SERVICO'
    end
    object QCadastroNF_COBRANCA: TIntegerField
      FieldName = 'NF_COBRANCA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_COBRANCA'
    end
    object QCadastroNF_VALORNOTAFISCAL4: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL4'
    end
    object QCadastroNF_VALORNOTAFISCAL5: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL5'
    end
    object QCadastroNF_VALORNOTAFISCAL6: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL6'
    end
    object QCadastroNF_DATAVENCIMENTO4: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO4'
    end
    object QCadastroNF_DATAVENCIMENTO5: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO5'
    end
    object QCadastroNF_DATAVENCIMENTO6: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO6'
    end
    object QCadastroNF_LOCAL_ESTOQUE: TIntegerField
      FieldName = 'NF_LOCAL_ESTOQUE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_LOCAL_ESTOQUE'
    end
    object QCadastroNF_DETALHE_CLASS_FISCAL: TStringField
      FieldName = 'NF_DETALHE_CLASS_FISCAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DETALHE_CLASS_FISCAL'
      Size = 255
    end
    object QCadastroNF_ORIGEM: TStringField
      FieldName = 'NF_ORIGEM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ORIGEM'
      Size = 2
    end
    object QCadastroNF_CODIGO_CONFERENCIA: TIntegerField
      FieldName = 'NF_CODIGO_CONFERENCIA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CODIGO_CONFERENCIA'
    end
    object QCadastroUSUARIO_CADASTRO: TStringField
      FieldName = 'USUARIO_CADASTRO'
      Origin = 'BASE.NOTAFISCALVENDA.USUARIO_CADASTRO'
    end
    object QCadastroUSUARIO_AUTERACAO: TStringField
      FieldName = 'USUARIO_AUTERACAO'
      Origin = 'BASE.NOTAFISCALVENDA.USUARIO_AUTERACAO'
    end
    object QCadastroUSUARIO_EXCLUSAO: TStringField
      FieldName = 'USUARIO_EXCLUSAO'
      Origin = 'BASE.NOTAFISCALVENDA.USUARIO_EXCLUSAO'
    end
    object QCadastroDATA_CADASTRO: TDateTimeField
      FieldName = 'DATA_CADASTRO'
      Origin = 'BASE.NOTAFISCALVENDA.DATA_CADASTRO'
    end
    object QCadastroDATA_EXCLUSAO: TDateTimeField
      FieldName = 'DATA_EXCLUSAO'
      Origin = 'BASE.NOTAFISCALVENDA.DATA_EXCLUSAO'
    end
    object QCadastroDATA_AUTERACAO: TDateTimeField
      FieldName = 'DATA_AUTERACAO'
      Origin = 'BASE.NOTAFISCALVENDA.DATA_AUTERACAO'
    end
    object QCadastroEXCLUIDO: TStringField
      FieldName = 'EXCLUIDO'
      Origin = 'BASE.NOTAFISCALVENDA.EXCLUIDO'
      FixedChar = True
      Size = 1
    end
    object QCadastroUSUARIO_RECUPERACAO: TStringField
      FieldName = 'USUARIO_RECUPERACAO'
      Origin = 'BASE.NOTAFISCALVENDA.USUARIO_RECUPERACAO'
    end
    object QCadastroDATA_RECUPERACAO: TDateTimeField
      FieldName = 'DATA_RECUPERACAO'
      Origin = 'BASE.NOTAFISCALVENDA.DATA_RECUPERACAO'
    end
  end
  object DSCliente: TDataSource
    DataSet = DMGestao.QCliente
    Left = 352
    Top = 40
  end
  object QVerifica: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'Select * from ItensNotaFiscalVenda')
    Left = 506
    Top = 306
  end
  object QCobranca: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      
        'select * from cobranca Left JOIN PrestacaoCobranca ON Cob_Codigo' +
        ' = PrestCob_Cobranca'
      'Order By PrestCob_CODIGO')
    Left = 377
    Top = 306
  end
  object DSCobranca: TDataSource
    DataSet = QCobranca
    Left = 374
    Top = 258
  end
  object QItensNotaFiscal: TQuery
    OnPostError = QItensPedidoVendaPostError
    DatabaseName = 'base'
    SQL.Strings = (
      
        'Select ItensNotaFiscalVenda.* ,Prod_DescricaoSai,PROD_TIPO,Loc_D' +
        'escricao'
      
        'from Local Right join (ItensNotaFiscalVenda Inner join produto o' +
        'n ItensNF_Produto = Prod_Codigo) on ItensNF_Local = Loc_Codigo')
    Left = 353
    Top = 342
  end
  object DSItensNotaFiscal: TDataSource
    DataSet = QItensNotaFiscal
    Left = 513
    Top = 406
  end
  object QProduto: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'Select * From produto'
      'where PROD_TIPO = 1'
      ''
      'order By Prod_DescricaoSai')
    Left = 244
    Top = 40
  end
  object DSProduto: TDataSource
    DataSet = QProduto
    Left = 475
    Top = 168
  end
  object QTipoVenda: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'Select * From TipoVenda'
      'order By TipVend_Descricao')
    Left = 448
    Top = 274
  end
  object DSTipoVenda: TDataSource
    DataSet = QTipoVenda
    Left = 515
    Top = 250
  end
  object dsMunicipio: TDataSource
    DataSet = DMGestao.QMunicipio
    Left = 192
    Top = 40
  end
end
